home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
BBS
/
LSTRUN17.ARJ
/
LASTRUN.DOC
< prev
next >
Wrap
Text File
|
1992-02-01
|
11KB
|
255 lines
┌─────────────┐
│ LASTRUN.EXE │
└─────────────┘
Last Mail Run Bulletin
Tom Kellen
ßETATech Computer Consulting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PURPOSE: This simple utility will create both mono and color
bulletins with your BBS name and the date and time of the
last successful PCRelay, FireNet, CircuitNET or other
network Mail Run. It will make this bulletin with the
information on up to 8 different networks. This program
should work with any BBS software as you specify the file
name of the bulletins.
INTRODUCTION:
The PCRelay software creates a one line text file listing the date and
time of the last SUCCESSFUL mail import it does. This is a nice
feature, but I wanted a way to make a nice bulletin so that my user's
would know exactly how current the RIME messages on board were. Hence
the birth of LASTRUN.EXE. LASTRUN will create a monochrome and a
color bulletin with the file names you supply it. This bulletin will
have your BBS name and the Date and Time of the last successful
PCRelay import. If you are connected to several different networks
and are using PCRelay for all of them, it will create this bulletin
showing the information on one to eight different networks.
Starting with version 1.4 I am adding support for CircuitNET.
Unfortunately CircuitNET does not create a LASTTIME.TXT type file upon
successful import. I hope the author will consider adding this in the
future. Many Spitfire sysops running CircuitNET are using a utility
called STAMPER. This creates a file very similar to LASTTIME.TXT.
The only problem with this method is that this file will be created
each time the batch file that does the CircuitNET Mail Run is used,
whether the run is successful or not. Be that as it may, I have added
support for reading STAMPER files or for having LASTRUN create the
bulletin using the current date and time.
Included in the LastRun distribution ZIP should also be a file called
LTFAKE.EXE. This program creates a clone of the LASTTIME.TXT file
created by PCRelay. It will create this clone LASTTIME.TXT in the
current directory or you can specify the directory it should use on
the command line. LTFake will use the current date and time in this
file. This program can be used in your FireNet or other network batch
files to create a fake LASTTIME.TXT when you've had a mail run. To
make this more accurate, I would suggest using a command like:
IF EXIST PARADIGM.FN LTFAKE
This would ensure that LTFake is only run on a successful mail run.
INSTALLATION:
Installation of LASTRUN is very simple. Place LASTRUN.EXE in your
PCRelay directory where all your node files are. LASTRUN.EXE needs
a configuration file called LASTRUN.CFG to also be in this directory.
I have included a sample one in the ZIP that you can edit to add the
specifics for your BBS.
This configuration file should be created with an ASCII editor (like
QEdit). The first line is your BBS's name. This can be up to 40
characters long and will show up on the first line of the bulletin.
The second line is the full file specification for the mono bulletin.
The third line is the full file specification of the color bulletin.
Line 4 is for Spitfire BBS and if there is a Y on this line, LASTRUN
will disable the MORE prompt by placing a ^B on the first line of the
bulletins. If you put an N on this line the ^B will not be placed in
the bulletin. SysOps of other BBS types, if ^B is not the same code
for disabling MORE on your BBS place a N on line 4. Line 5 is also
for Spitfire BBS. Putting a Y on this line will reenable the MORE
prompt and force a MORE by placing a ^E and then a ^P on the last line
of the bulletins. Putting a N on line 5 will omit these codes from
the bulletin. You must not have any blank lines in the LASTRUN.CFG
file until the last line or it will not read the rest of the
configuration file, so put a Y or an N on these lines. Line 6 is the
name of the first network. Network names can be up to 30 character's
long. Line 5 is the directory where LASTRUN will find the
LASTTIME.TXT file for that particular network. The next 14 lines if
you have them alternate between the network name and the directory
specification for that network's PCRelay files.
Here is sample LASTRUN.CFG:
The Paradigm BBS
C:\SF\DISPLAY\ALL.BBS
C:\SF\DISPLAY\ALL.CLR
Y
Y
RIME
C:\PCRELAY1
LOCALNET T
C:\RELAY2
CIRCUITNET S
C:\SF\CN3
There are 2 extra options in use in the above configuration file. You
will notice that there is a T after the LOCALNET name. This tells
LASTRUN to use the current Date and Time for this network. This
option get's the system Date and Time and so does not need to read any
file. However you MUST put something on the next line where a
directory specification would normally go. It can be any character,
LASTRUN does nothing with it but it keeps LASTRUN from thinking this
is the last line of the configuration file.
The other option you will notice is the S on the line after the
CIRCUITNET name. This tells LASTRUN that it will be reading a text
file from STAMPER. You must tell STAMPER to create the bulletins with
the name of LASTTIME. A sample STAMPER command line would be:
STAMPER C:\SF\CN3\LASTTIME
This will have STAMPER make LASTTIME.BBS and LASTTIME.CLR in the
C:\SF\CN3 directory. Lastrun will read the LASTTIME.BBS file to get
the date and time.
One of the advantages of using STAMPER is that you can put it in your
batch file for the CircuitNET Mail Run and it will create the text
file with the date and time that batch file was run. If you are
running multiple networks you can then have LASTRUN as part of all
your net-mail batch files and it will create the bulletins with all
the actual times of the mail runs. If you are only running CircuitNET
and no other networks, you can use LASTRUN with the T option on the
network name line and bypass using STAMPER.
Next you will need to edit the batch file that does your PCRelay mail
import and add a line calling LASTRUN right after the line that call's
IMPORT. This will assure you that the bulletin is created with the
most up to date information. Here is an example of my PCRelay mail
run batch file.
:EVENT_H
REM RIME Network Mail Run
CD\PCR
EXPORT
CD\TC
TELIX SMAILRUN
CD\PCR
IMPORT
LASTRUN
CD\SF
That is all there is to it. IMPORT creates the LASTTIME.TXT file in
the PCRelay subdirectory with the date and time of the last successful
message import. LASTRUN.EXE reads this file and creates a bulletin
that looks like this:
╒═══════════════════════════════════════════════╕
█ │ The Paradigm BBS's │
█ │ │
█ │ Last Successful RIME │
█ │ Transfer Was At 21:01 On 02-01-92. │
█ │ │
█ │ Last Successful INTELEC │
█ │ Transfer Was At 21:02 On 02-02-92. │
█ │ │
█ │ Last Successful LOCALNET │
█ │ Transfer Was At 21:03 On 02-03-92. │
█ │ │
█ │ Last Successful CIRCUITNET │
█ │ Transfer Was At 21:04 On 02-03-92. │
█ ╘═══════════════════════════════════════════════╛
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
The size of the bulletin varies with the number of networks you run.
OPERATION:
If you have placed the call to LASTRUN into your PCRelay batch file,
operation is totally automatic, and the bulletins will be updated
every time you do a mail transfer.
EPILOGUE:
This utility is being distributed under the Shareware principal. This
means you get to try this utility before your buy it. If it is useful
to you, pay the author for it, otherwise, delete it. I am trying to
create quality, low cost software so any and all contributions are
welcome. Send what you feel the utility is worth to the address below
(suggested registration is one dollar). Thanks for supporting
Shareware and keeping this type of distribution alive.
AUTHOR CONTACT:
Problems, solutions, kudos and ideas are welcomed. I can be reached
at the following:
The Paradigm BBS ßETATech Computer Consulting
404/671-1581 P. O. Box 566742
1200-19,200 Baud 24 Hrs/Day Atlanta, GA 31156-6013
DISCLAIMER:
Use of this program acknowledges this disclaimer of warranty: "This
program is supplied as is. ßETATech Computer Consulting disclaims all
warranties, express or implied, including, without limitation, the
warranties of merchantability and of fitness of this program for any
purpose. ßETATech Computer Consulting assumes no liability for
damages direct or consequential, which may result from the use of this
program."
ACKNOWLEDGMENTS:
My thanks to Mike Woltz for his fine Spitfire BBS Software and for
providing sample Turbo Pascal source code for us novice programmers.
This program uses Buffalo Creek's BCShare Turbo Pascal File Locking
and Sharing routines. Thanks to John Newlin for being my mentor and
for being an inspirational programmer and providing excellent
shareware to the computing public, and to Sammy Mitchell for his
superb QEdit text editor, how can anyone do without it?
REVISION HISTORY:
23-AUG-1990 v1.0 Initial Release.
17-SEP-1990 v1.1 Added support for up to 4 different
networks.
20-SEP-1990 v1.11 Minor fix to screen info.
27-SEP-1990 v1.2 Added support for up to 8 different
networks.
29-SEP-1990 v1.3 Fixed Bug in reading 5-8 LASTTIME.TXT
04-OCT-1990 v1.4 Added support for CircuitNET & STAMPER.
11-NOV-1990 v1.5 Added Spitfire MORE display control codes.
18-NOV-1990 v1.51 Recompiled with BCShare v0.7 to correct some
error checking.
01-DEC-1990 v1.6 Recompiled with Turbo Pascal v6.0.
01-FEB-1992 v1.7 Changed the way the control characters are
entered in the bulletins to work better with
Spitfire 3.2. Added LTFAKE.EXE utility.